<template>
  <div class="header">
    <slot><h1>{{ msg }}</h1></slot>
  </div>
</template>

<script>
export default {
  name: 'header',
  data () {
    return {
      msg: '我是 header'
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.header{
  background: red;
}
</style>
